<div class="_main">
    {{#each $Cache.dotnar_case.list}}
    <mcase src="{{info.src}}?imageView/2/w/320" href="{{info.href}}" title="{{info.title}}"></mcase>
    {{/each}}
</div>
<xmp type="tag" name="mcase">
    <div event-click="{{'$Top.$Event.getData'}}" class="citem">
        <a href="${href}"><img class="caseimg" src="${src}" /></a>
        <div class="caseinfo">
            <a href="${href}"><div class="infoitem">${title}</div></a>
        </div>
    </div>
    <script type="text/vm">
    	function(vm){
    		require(['common'],function(jSouper){
    			var title="我觉得#"+vm.get("info.title")+"#这个网站不错，跟大家分享一下";
                var pic=vm.get("info.src")+"?imageView/1/w/204/h/110"; 
                var rLink = vm.get('info.href');
    			vm.set('$Event.share',function(){
                    window.open("http://service.weibo.com/share/share.php?pic=" + encodeURIComponent(pic) + "&title=" +encodeURIComponent(title.replace(/&nbsp;/g, " ").replace(/<br \/>/g, " ")) + "&url=" + encodeURIComponent(rLink),
                        "分享至新浪微博",
                        "toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no");
                });
    		})
    	}
    </script>
</xmp>
